// $(function() {
//     $('#yy').click(function() {
//         debugger
        
//     })
// })
// 获取网站的cookie，并打印出来
function handleCookie(params) {
    chrome.tabs.query({ active: true, lastFocusedWindow: true }, tabs => {
      let url = tabs[0].url;
      // use `url` here inside the callback because it's asynchronous!
      console.log('url--', url);
      document.getElementById("url").innerHTML = url.indexOf('https://www.baidu.com') > -1
    //   chrome.cookies.getAll({ url }, function (cookies) {
    //     const resList = cookies.map(item => {
    //       return `${item.name}=${item.value}`
    //     })
    //     const cookieStr = resList.join(";")
    //     console.log("cookies-----", cookieStr);
    //     document.getElementById("cookies").innerHTML = cookieStr
    //   });
    });
  }

//   handleCookie()

